/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo1008;

import java.util.HashSet;

/**
 *
 * @author Administrator
 */
public class HashSetDemo {
   
  
    public static void main(String args[]){
       
        
        
        
      HashSet<String > hs=new HashSet<String>();
      
      hs.add("zhang");
      hs.add("li");
      hs.add("zhang");
      for(String s:hs){
          System.out.println(s);
      }
    }
    
}
